import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_cms_tags",{schema:"fastadmin" } )
@Index("name",["name",],{unique:true})
@Index("nums",["nums",])
export class fa_cms_tags {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        unique: true,
        length:50,
        name:"name"
        })
    name:string;
        

    @Column("text",{ 
        nullable:true,
        name:"archives"
        })
    archives:string | null;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"nums"
        })
    nums:number;
        
}
